package com.haojiang.mh.remote.base

import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout

abstract class BaseWidgetView : RelativeLayout {

    constructor(context: Context?) : super(context)
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
    constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
        context,
        attrs,
        defStyleAttr
    )


    init {
        View.inflate(context, getLayoutId(), getViewGroup())
    }

    abstract fun getLayoutId(): Int;
    abstract fun getViewGroup(): ViewGroup;
}